using System;
using NUtil.common;

namespace NUtil {
    public class StringUtils {
        public static String ToString(object obj) {
            return new ToStringBuilder().ToStringFields(obj);
        }

        public static String ToString(object obj, String[] fieldNames) {
            return new ToStringBuilder().ToStringFields(obj, fieldNames);
        }

        public static String ToStringExclude(object obj, String[] fieldNames) {
            return new ToStringBuilder().ToStringFieldsExclude(obj, fieldNames);
        }

        public static String ToStringPropertyBasedExclude(object obj, String[] propertiesToExclude) {
            return new ToStringBuilder().ToStringPropsExclude(obj, propertiesToExclude);
        }

        public static String ToStringPropertyBased(object obj) {
            return new ToStringBuilder().ToStringProps(obj);
        }

        public static String ToStringPropertyBased(object obj, String[] propertiesToInclude) {
            return new ToStringBuilder().ToStringProps(obj, propertiesToInclude);
        }
    }
}